<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Motivation - Boost.Outcome documentation</title>
<link rel="stylesheet" href="./css/boost.css" type="text/css">
<meta name="generator" content="Hugo 0.52 with Boostdoc theme">
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>

<link rel="icon" href="./images/favicon.ico" type="image/ico"/>
<body><div class="spirit-nav">
<a accesskey="p" href="./build.html"><img src="./images/prev.png" alt="Prev"></a>
    <a accesskey="u" href="./index.html"><img src="./images/up.png" alt="Up"></a>
    <a accesskey="h" href="./index.html"><img src="./images/home.png" alt="Home"></a><a accesskey="n" href="./motivation/exceptions.html"><img src="./images/next.png" alt="Next"></a></div><div id="content">

  <div class="titlepage"><div><div><h1 style="clear: both">Motivation</h1></div></div></div>
<p>This section describes techniques currently used to report and handle failures
in functions, it also shows why these techniques might be insufficient.</p>

<p>If you just want to learn how to use Outcome library go straight to <a href="./tutorial.html">Tutorial
section</a>.</p>

<div class="notices note" style="background: url('images/note.png') top left no-repeat padding-box padding-box;">
<div class="notices heading">note</div>
<div class="notices message"><p>Motivation section of this documentation is not complete yet.</p>
</div>
</div>


<ol class="children children-li"><li>
	<a href="./motivation/exceptions.html" >Exceptions</a>
<p>Exceptions with their good and bad sides.</p><li>
	<a href="./motivation/errno.html" >errno</a>
<p>errno with their good and bad sides.</p><li>
	<a href="./motivation/error_codes.html" >Error codes</a>
<p>Error codes with their good and bad sides.</p><li>
	<a href="./motivation/std_error_code.html" >std::error_code</a>
<p>Overview of std::error_code</p><li>
	<a href="./motivation/plug_error_code.html" >Plugging a library into std::error_code`</a>
<p>Illustrates how you can hook into the <code>std::error_code</code> system from the Standard Library in order to work with your own set of error codes.</p><li>
	<a href="./motivation/plug_error_code2.html" >Plugging a library into boost::system::error_code</a>
<p>Illustrates how you can hook into the <code>boost::system::error_code</code> system from Boost in order to work with your own set of error codes.</p><li>
	<a href="./motivation/narrow_contract.html" >Narrow contracts</a>
<p>Describes narrow-contract functions that do not work for all input values, and advantage of using them.</p></li></ol>








        </div><p><small>Last revised: June 27, 2019 at 16:00:40 &#43;0100</small></p>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="./build.html"><img src="./images/prev.png" alt="Prev"></a>
    <a accesskey="u" href="./index.html"><img src="./images/up.png" alt="Up"></a>
    <a accesskey="h" href="./index.html"><img src="./images/home.png" alt="Home"></a><a accesskey="n" href="./motivation/exceptions.html"><img src="./images/next.png" alt="Next"></a></div></body>
</html>
